<html>
<head>
<script type="text/javascript">
function getUrlVars() {
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
    for(var i = 0; i <hashes.length; i++)
    {
        hash = hashes[i].split('=');
        vars.push(hash[0]);
        vars[hash[0]] = hash[1];
    }
    return vars;
}

function initialize() {
	var vars = getUrlVars();
	document.write(vars['key1']);
	//document.writeLine();
	document.write(vars['key2']);
	//for (var i = 0; i < vars.length; i++) {
	//	document.write(vars[i]);
	//}
	//window.alert('HELLO');
}
function showHello() {
	window.alert("Result: ");
	document.write( 'HELLO');
}
</script>
</head>
<body onload="initialize()">
  <h1>Report Client</h1>
  <div id="map_canvas" style="width:100%; height:100%"></div>
</body>
</html>